package com.caigou.mapper.exam;


import com.caigou.bean.cms.entity.UserPrivilege;
import com.caigou.bean.cms.param.UsersParam;
import com.caigou.bean.cms.param.UsersUpdateParam;
import com.caigou.bean.exam.entity.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UsersMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Users record);

    int insertSelective(Users record);

    int updateByPrimaryKeySelective(Users record);

    int updateByPrimaryKey(Users record);

    Users findUserByTel(String tel);

    List<Users> findUsersByParam(UsersParam param);

    List<Users> findUsersByUserIds(@Param("ids") List<String> ids);


    List<Users> queryUser(UsersParam param);

    List<String> listUserIdByLabels(String[] labels);

    int updateUserStatus(UsersParam param);

    int updateTel(UsersUpdateParam param);

    int updatePassword(UsersUpdateParam param);

    Users findUserByUserId(String userid);

    Users queryUserDetail(String userId);

    List<String> listLabelIdByUserId(String userId);

    List<String> listLabelNameByLabelIds(List<Integer> labelIds);

    String getAreaNameById(@Param("id") Integer id);

    int getModalCountByUserId(@Param("userId") String userId);

    int getReceiveSystemMessageUserCount(@Param("publishTime") Integer publishTime);

    int updateWxBindingStatus(String userid);
}
